<!DOCTYPE html>
<html>
	<head>
		<link rel="stylesheet" type="text/css" href="css/biens.css">
		<meta charset="UTF-8"/>
		<title>Mes Biens</title>
	</head>

	<body>
	<div id="biens"> 

						<?php 
				while($bien = mysqli_fetch_array($bienList)){
					echo "<fieldset><ul>";
					echo "<li>Ville : ".$bien['ville_nom']."</li><br/>";
					echo "<li>Pays : ".$bien['nom_pays']."</li><br/>";
					echo "<li>Photo : <img src=\"" .  $bien['location_couv']  . "\"/>" . "</li><br/>";
					echo "<li>Date début : ".date('d-m-Y', strtotime($bien['location_dated']))."</li><br/>";
					echo "<li>Date fin : ".date('d-m-Y', strtotime($bien['location_datef']))."</li><br/>";
					echo "<li>Surface : ".$bien['location_surface']."m²</li><br/>";
					echo "<li>Prix à la semaine : ".$bien['location_tarifh']."€</li><br/>";
					echo "<li>Prix à la journée: ".$bien['location_tarifj']."€</li><br/>";
					echo "<li>Adresse : ".$bien['location_voie']."</li><br/>";
					echo "<li>Description : ".$bien['location_desc']."</li><br/><br/>";
					echo "<li><form action='supprimer_location.php' method='post'><input type='hidden' name='location_id' value=".$bien['location_id']."/><input type='submit' name='supprimer' style='color:#E2001A;text-decoration:none;' value='Supprimer cette annonce'/></form></li><br/>";
					echo "<li><a href='modifier_bien.php' style='color:#E2001A;text-decoration:none;'>Modifier le bien</a></li><br/>";
				
					echo "</ul></fieldset>";
					echo "<br/>";
					echo "<input type='hidden' name='location_id' value=".$bien['location_id']."/>";
				}

			?>

		
	</div>
	</body>
</html>
